/**
 * 认证相关API接口
 */

import request from '@/utils/request'

/**
 * 用户登录
 * @param {Object} data - 登录数据 {phone, password}
 */
export const loginUser = (data) => {
  return request({
    url: '/api/auth/login',
    method: 'post',
    data,
  })
}

/**
 * 用户注册
 * @param {Object} data - 注册数据
 */
export const registerUser = (data) => {
  return request({
    url: '/api/auth/register',
    method: 'post',
    data,
  })
}
